package com.shujia.userController;

import com.shujia.uerService.userService;
import com.shujia.user.Message;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestControllor {
    private userService userService = new userService();
    @GetMapping("/login")
    public Message login(String username,String password){
        Message login = userService.login(username, password);
        return login;
    }

}
